package com.yingsheng.bi.hks.mapping;

import com.yingsheng.bi.hks.bo.MerchBo;
import com.yingsheng.bi.hks.dto.merch.MerchAddReq;
import com.yingsheng.bi.hks.dto.merch.MerchModReq;
import com.yingsheng.bi.hks.repository.dao.po.Merchants;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface MerchMgmtMappings {

    MerchMgmtMappings INSTANCE = Mappers.getMapper(MerchMgmtMappings.class);

    Merchants addReq2po(MerchAddReq req);

    Merchants addReq2po(MerchModReq req);

    List<MerchBo> merchList2boList(List<Merchants> merchants);
}
